package com.imc.griebeler.visitor;

public class ToStringVisitor implements ShapeVisitor<String>{

	@Override
	public String visit(Circle circle) {
		return "circle with radius[" + circle.getRadius() + "]";
	}

	@Override
	public String visit(Rectangle rectangle) {
		return "rectangle with height[" + rectangle.getHeight() + "] and width[" + rectangle.getWidth() + "]"; 
	}

	@Override
	public String visit(Triangle triangle) {
		return "triangle with height[" + triangle.getHeight() + "] and width[" + triangle.getWidth() + "]";
	}
}
